$Server = $env:computername
#server's CPU Mem Hardinfor 
#$IpAdd = (Get-WmiObject -class win32_NetworkAdapterConfiguration -Filter 'ipenabled = "true"').ipaddress[0]
#$SystemVersion = Get-WmiObject -Class Win32_OperatingSystem | Select-Object -ExpandProperty Caption
$cpu = gwmi -computername $Server win32_Processor 
$men = gwmi -computername $Server win32_OperatingSystem 
$Disks = gwmi -Computer: $Server win32_logicaldisk -filter "drivetype=3" 
$Havecpu = "{0:0.0} %" -f $cpu.LoadPercentage 
$Allmen = "{0:0.0} MB" -f ($men.TotalVisibleMemorySize  / 1KB) 
$Freemen = "{0:0.0} MB" -f ($men.FreePhysicalMemory  / 1KB) 
$Permem =  "{0:0.0} %" -f ((($men.TotalVisibleMemorySize-$men.FreePhysicalMemory)/$men.TotalVisibleMemorySize)*100) 

#Write-Host "Computer:$Server|"`r`n
#Write-Host "SystemVersion:$SystemVersion|"`r`n
#Write-Host "Ipaddress:$IpAdd|"`r`n
Write-Host "CPU: $Havecpu|"`r`n
Write-Host "TotalMem:$Allmen|"`r`n 
Write-Host "FreeMem:$Freemen|"`r`n
Write-Host "UsedMem:$Permem|"`r`n